Skip to content

chore(deps): bump secrets-engine/client to v1.0.0 and drop secrets-engine/x - #14541

Merged
ndeloof merged 1 commit into
docker:mainfrom
Benehiko:deps/secrets-engine-client-v1.0.0
Nov 23, 2026
Merged

ndeloof merged 1 commit into
docker:mainfrom
Benehiko:deps/secrets-engine-client-v1.0.0

Conversation

@Benehiko

@Benehiko Benehiko commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Warning

Draft. The version bump only. Authorizing before reading the Docker Desktop session, and the timeouts that go with it, are in #14542, which builds on this PR.

What this PR does

Upgrades github.com/docker/secrets-engine/client from v0.2.2 to v1.0.0 and drops github.com/docker/secrets-engine/x. Client v1.0.0 moves its shared types into the new github.com/docker/secrets-engine/secrets module and no longer needs x, which makes docker-compose about 2.2% smaller. Behavior is unchanged.

Related issue

No Compose issue. Supersedes #14538 (Dependabot's bump of the client to v1.0.0, which keeps x because internal/registry still imports x/api).

Related: docker/secrets-engine#709, docker/cli#7431

Changes made

  • go.mod: secrets-engine/client v0.2.2 → v1.0.0. secrets-engine/x v0.8.5 is replaced by secrets-engine/secrets v1.0.0. go mod tidy also drops connectrpc.com/connect and golang.org/x/mod, which only x and the old client pulled in.
  • internal/registry/desktop.go: take the Docker Desktop socket path from client/config.DesktopSocketPath() instead of x/api.DesktopSocketPath().
  • internal/registry/desktop_test.go: use secrets.ErrAccessDenied; seclient.ErrAccessDenied is now an alias of it.

seclient.New, WithSocketPath, WithTimeout, HubAuth, ConnectError and its reasons, and the dockerhub types are unchanged in v1.0.0. The go 1.26.11 directive in go.mod is unchanged.

Binary size

docker-compose built from main and from this branch with -trimpath -tags e2e and CGO_ENABLED=0, both with Go 1.27.4 (as in the Dockerfile and .go-version); stripped means -ldflags "-s -w". 1 MB = 1,000,000 bytes.

platform unstripped stripped
linux/arm64 41.89 → 40.99 MB (−0.90 MB, −2.1%) 28.70 → 28.12 MB (−0.59 MB, −2.1%)
linux/amd64 44.88 → 43.89 MB (−1.00 MB, −2.2%) 30.97 → 30.29 MB (−0.68 MB, −2.2%)
darwin/arm64 43.39 → 42.40 MB (−0.99 MB, −2.3%) 29.68 → 29.02 MB (−0.67 MB, −2.2%)
windows/amd64 45.59 → 44.59 MB (−1.01 MB, −2.2%) 31.86 → 31.17 MB (−0.69 MB, −2.2%)
  • No longer linked: github.com/docker/secrets-engine/x v0.8.5, connectrpc.com/connect v1.19.1, and golang.org/x/mod v0.41.0.
  • Newly linked: github.com/docker/secrets-engine/secrets v1.0.0.
  • Release builds use cgo and the fsnotify tag on darwin, and -w with a version -X on all platforms, which these builds did not.

Docker Desktop test

A throwaway program, not part of this PR, called registry.NewDesktopAuthProvider and the client against the running Docker Desktop on macOS (darwin/arm64). Tokens were never printed. The binary is built by go run, so it is not signed by Docker and Docker Desktop prompts for it.

  • With this PR and with main (client v0.2.2), the Docker Hub lookup timed out after 5 seconds while the Docker Desktop prompt was open, and fell back to the Docker CLI credentials. Same behavior, so not a regression of v1.0.0. registry: authorize docker/auth/** before reading the Docker Desktop session #14542 addresses it.
  • Given time to answer the prompt, client v1.0.0 read the default Docker Hub session (username, a 1,095-byte access token) and the staging session from Docker Desktop.
  • UserSession.Claims in client v1.0.0 come from the claims field that Docker Desktop stores, not from the JWT. For both sessions they matched the JWT's iat and exp.
  • Error messages from the client changed: a failed Docker Hub lookup now reads retrieve default account metadata: ... instead of retrieve user access token: ..., because v1.0.0 reads the default profile first. Compose's fallback handles both the same way.

Testing done

  • Unit tests pass for internal/registry, and for every package except pkg/remote and pkg/watch, which fail the same way on main on the machine used (macOS, darwin/arm64)
  • E2E tests pass: make e2e-compose or make e2e-compose-standalone
  • Linting passes: golangci-lint run ./internal/registry/... (not the full make lint)
  • Code formatted: gofmt -l internal/registry
  • Manually tested (describe): against Docker Desktop on macOS with a binary not signed by Docker, see Docker Desktop test. Not tested with a Docker-signed build, or on Linux or Windows.

AI tool used (if applicable)

AI Tool: alki, an AI coding agent, running Claude Opus 5.5. It wrote the code change, ran the tests, the binary size measurements, and the Docker Desktop test, and wrote this description.

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@Benehiko Benehiko changed the title build(deps): bump secrets-engine/client to v1.0.0 and drop secrets-engine/x registry: bump secrets-engine/client to v1.0.0, drop secrets-engine/x, and authorize before reading the Docker Desktop session Nov 23, 2026
@Benehiko
Benehiko force-pushed the deps/secrets-engine-client-v1.0.0 branch from f78f847 to a9e2334 Compare November 23, 2026 08:08
@Benehiko Benehiko changed the title registry: bump secrets-engine/client to v1.0.0, drop secrets-engine/x, and authorize before reading the Docker Desktop session build(deps): bump secrets-engine/client to v1.0.0 and drop secrets-engine/x Nov 23, 2026
…gine/x

client v1.0.0 moves its shared types into the new github.com/docker/secrets-engine/secrets module and no longer depends on github.com/docker/secrets-engine/x. Take the Docker Desktop socket path from client/config instead of x/api, so x is no longer needed.

This also drops connectrpc.com/connect and golang.org/x/mod from the binary, which makes docker-compose about 2.2% smaller on linux, darwin and windows.

Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
@Benehiko
Benehiko force-pushed the deps/secrets-engine-client-v1.0.0 branch from a9e2334 to 52d1b29 Compare November 23, 2026 08:15
@Benehiko Benehiko changed the title build(deps): bump secrets-engine/client to v1.0.0 and drop secrets-engine/x chore(deps): bump secrets-engine/client to v1.0.0 and drop secrets-engine/x Nov 23, 2026
@Benehiko
Benehiko marked this pull request as ready for review November 23, 2026 08:19
@Benehiko
Benehiko requested review from a team as code owners November 23, 2026 08:19
@Benehiko
Benehiko requested review from glours and ndeloof November 23, 2026 08:19

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@glours glours left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me

@ndeloof
ndeloof merged commit 4b6c39f into docker:main Nov 23, 2026
120 of 124 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants